import request from '@/utils/request'

// 查询客房状态列表
export function listRoomstatus(query) {
  return request({
    url: '/business/roomstatus/list',
    method: 'get',
    params: query
  })
}

// 查询客房状态详细
export function getRoomstatus(roomStatusId) {
  return request({
    url: '/business/roomstatus/' + roomStatusId,
    method: 'get'
  })
}

// 新增客房状态
export function addRoomstatus(data) {
  return request({
    url: '/business/roomstatus',
    method: 'post',
    data: data
  })
}

// 修改客房状态
export function updateRoomstatus(data) {
  return request({
    url: '/business/roomstatus',
    method: 'put',
    data: data
  })
}

// 删除客房状态
export function delRoomstatus(roomStatusId) {
  return request({
    url: '/business/roomstatus/' + roomStatusId,
    method: 'delete'
  })
}
